package dingtalk

// ROOTURL 钉钉开放平台根RUL
const ROOTURL = "https://oapi.dingtalk.com"

var (
	// 身份验证

	// GetUserInfoBycode GetUserInfoBycode
	GetUserInfoBycode = ROOTURL + "/sns/getuserinfo_bycode"
	// GetUserInfo 通过免登授权码和access_token获取用户的userid。
	GetUserInfo = ROOTURL + "/user/getuserinfo"
	// GetToken GetToken
	GetToken = ROOTURL + "/gettoken"
	// SSOGetToken SSOGetToken
	SSOGetToken = ROOTURL + "/sso/gettoken"
	// SSOGetUserInfo SSOGetUserInfo
	SSOGetUserInfo = ROOTURL + "/sso/getuserinfo"

	// 通讯录管理-用户管理

	// UserCreate UserCreate
	UserCreate = ROOTURL + "/user/create"
	// UserUpdate UserUpdate
	UserUpdate = ROOTURL + "/user/update"
	// UserDelete UserDelete
	UserDelete = ROOTURL + "/user/delete"
	// UserGet UserGet
	UserGet = ROOTURL + "/user/get"
	// UserGetDeptMember UserGetDeptMember
	UserGetDeptMember = ROOTURL + "/user/getDeptMember"
	// UserSimpleList UserSimpleList
	UserSimpleList = ROOTURL + "/user/simplelist"
	// UserListByPage UserListByPage
	UserListByPage = ROOTURL + "/user/listbypage"
	// UserGetAdmin UserGetAdmin
	UserGetAdmin = ROOTURL + "/user/get_admin"
	// UserGetAdminScope UserGetAdminScope
	UserGetAdminScope = ROOTURL + "/topapi/user/get_admin_scope"
	// UserGetUseridByUnionid UserGetUseridByUnionid
	UserGetUseridByUnionid = ROOTURL + "/user/getUseridByUnionid"
	// UserGetByMobile UserGetByMobile
	UserGetByMobile = ROOTURL + "/user/get_by_mobile"
	// UserGetOrgUserCount UserGetOrgUserCount
	UserGetOrgUserCount = ROOTURL + "/user/get_org_user_count"
	// UserGetInactive UserGetInactive
	UserGetInactive = ROOTURL + "/topapi/inactive/user/get"

	// DepartmentCreate 通讯录管理-部门管理
	DepartmentCreate = ROOTURL + "/department/create"
	// DepartmentUpdate DepartmentUpdate
	DepartmentUpdate = ROOTURL + "/department/update"
	// DepartmentDelete DepartmentDelete
	DepartmentDelete = ROOTURL + "/department/delete"
	// DepartmentListIds DepartmentListIds
	DepartmentListIds = ROOTURL + "/department/list_ids"
	// DepartmentList DepartmentList
	DepartmentList = ROOTURL + "/department/list"
	// DepartmentGet DepartmentGet
	DepartmentGet = ROOTURL + "/department/get"
	// DepartmentListParent DepartmentListParent
	DepartmentListParent = ROOTURL + "/department/list_parent_depts_by_dept"
	// DepartmentListParentDepts DepartmentListParentDepts
	DepartmentListParentDepts = ROOTURL + "/department/list_parent_depts"

	// 通讯录管理-角色管理

	// 代办事项

	// WorkrecordAdd 新增待办事项
	WorkrecordAdd = ROOTURL + "/topapi/workrecord/add"
	// WorkrecordGetbyuserid  获取用户的待办事项
	WorkrecordGetbyuserid = ROOTURL + "/topapi/workrecord/getbyuserid"
	// WorkrecordUpdate 更新待办事项状态
	WorkrecordUpdate = ROOTURL + "/topapi/workrecord/update"

	// 消息通知-工作消息通知

	// MessageCorpconversationAsyncsendV2 企业会话消息异步发送接口
	MessageCorpconversationAsyncsendV2 = ROOTURL + "/topapi/message/corpconversation/asyncsend_v2"
	// MessageCorpconversationGetsendprogress 获取异步发送企业会话消息的发送进度
	MessageCorpconversationGetsendprogress = ROOTURL + "/topapi/message/corpconversation/getsendprogress"
	// MessageCorpconversationGetsendresult 获取异步向企业会话发送消息的结果
	MessageCorpconversationGetsendresult = ROOTURL + "/topapi/message/corpconversation/getsendresult"
	// MessageCorpconversationRecall 撤回工作通知消息
	MessageCorpconversationRecall = ROOTURL + "/topapi/message/corpconversation/recall"

	// 消息通知-群消息

	// ChatCreate 创建会话
	ChatCreate = ROOTURL + "/topapi/chat/create"
	// ChatGet 获取会话
	ChatGet = ROOTURL + "/topapi/chat/get"
	// ChatMemberFriendswitchUpdate 更新群成员之间的添加朋友开关
	ChatMemberFriendswitchUpdate = ROOTURL + "/topapi/chat/member/friendswitch/update"
	// ChatSend 发送群消息
	ChatSend = ROOTURL + "/topapi/chat/send"
	// ChatSubadminUpdate 增加删除群管理员
	ChatSubadminUpdate = ROOTURL + "/topapi/chat/subadmin/update"
	// ChatUpdate 修改会话
	ChatUpdate = ROOTURL + "/topapi/chat/update"

	// 消息通知-普通消息

	// MessageSendToConversation 发送普通消息
	MessageSendToConversation = ROOTURL + "/topapi/message/send_to_conversation"
)
